import React from 'react';
import {connect} from "react-redux";
import actions from '../store/actions/home';
function Home(props) {
    return (
        <div>

            <h1>home</h1>
            <button onClick={() => props.go('./counter')}>跳转到counter</button>
        </div>

    )
}
// 成为props的属性
export  default connect(
    state => state,
    actions
)(Home)
